package com.iwdnb.gkgz.infrastructure.dao.repo.impl;

import com.iwdnb.gkgz.common.model.dto.prediction.StockPredictionResult;
import com.iwdnb.gkgz.infrastructure.dao.repo.StockPredictionResultRepository;
import com.iwdnb.wwzy.dao.MetaDataDAO;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Component;

import static com.iwdnb.gkgz.common.constant.GkgzConstants.OBJECT_CODE_STOCK_PREDICTION_RESULT;

@Component
public class StockPredictionResultRepositoryImpl implements StockPredictionResultRepository {
    @Autowired
    private MetaDataDAO metaDataDAO;
    private static final String OBJECT_CODE = OBJECT_CODE_STOCK_PREDICTION_RESULT;

    @Override
    public void insert(StockPredictionResult result) {
        metaDataDAO.insert(OBJECT_CODE, result);
    }
}
